package com.chianghao.rock.admin.system.user_role.dto;

import java.util.List;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


@ApiModel("设置用户角色")
public class UserRoleDto {


	@ApiModelProperty("用户ID")
	@NotNull(message="error:user.id,not.null")
	private java.lang.Long userId;
	
	@ApiModelProperty("角色ID集合")
	@NotEmpty(message="error:collecter,not.null")
	private List<java.lang.Long> roleIds;


	public java.lang.Long getUserId() {
		return userId;
	}


	public void setUserId(java.lang.Long userId) {
		this.userId = userId;
	}


	public List<java.lang.Long> getRoleIds() {
		return roleIds;
	}


	public void setRoleIds(List<java.lang.Long> roleIds) {
		this.roleIds = roleIds;
	}

	
	

}
